<template>

</template>

<script>
export default {
  name: "weighForm",
  data () {
    return {}
  },
  methods: {},
  async mounted () {
    this.$Cookies.get('token')
    let time = new Date();
    try {
      let res = await this.$api.get('/getHttpUrl/WEIGHFORM');
      
        let url = `${res.bean}?whseid=${this.$store.state.wms}&users=${this.$Cookies.get('user')}&screenId=${time.getTime()}&token=${this.$Cookies.get('token')}`;
        //let url = `http://localhost:8086/rtxext/InitWeighServlet?whseid=wmwhse1&users=panda&screenId=1611306952056&token=` + this.$Cookies.get('token');

        this.$router.push({ name: "appiframe", params: { url: url } });
    } catch (e) {
      this.$message.error(e)
    }

  }
}
</script>

<style scoped>
</style>
